home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Workbench / Archive / XPK / xpk_Source / libraries / HUFF / xpkLibHUFF.i < prev   
Text File  |  1998-11-15  |  3KB  |  79 lines

  1.     INCLUDE    "xpk/xpkLibHeader.i"
  2.  
  3. ******************** $VER: xpkLib.i 1.8 (27.06.1998) *********************
  4.  
  5. ; Here the needed variables and strings are initialized. Do not change the
  6. ; format of the IDString. Only add some additional information after the
  7. ; second brake. An additional $VER: string is not needed!
  8.  
  9. VERSION        EQU    0        ; version of your library
  10. REVISION    EQU    64        ; revision of your library
  11.  
  12. LibName        DC.B    'xpkHUFF.library',0
  13. IDString    DC.B    'xpkHUFF 0.64 (01.04.1997)',13,10,0
  14.         CNOP    0,2
  15.  
  16. **************************************************************************
  17.  
  18. ; Functions _xInitCode and _xExitCode give you the ability to do things on
  19. ; opening and closing of library. These functions are called by init
  20. ; routine or by Expunge. Init is the only funtion, that is allowed to set a
  21. ; value for an global variable. The library pointer is in A5, registers
  22. ; have to be saved!!! If _xInitCode returns not zero, the init function
  23. ; fails and thus the library cannot be opened!
  24.  
  25. ; The _xInitCode function can for example be used for processor type checks:
  26. ; the <flag> place holder may be any of the following values:
  27. ; CPU's: AFF_68010, AFF_68020, AFF_68030, AFF_68040
  28. ; FPU's: AFF_68881, AFF_68882
  29. ; NOTE: for better processors (e.g. AFF_68030) the lower bits are set also
  30. ; (AFF_68020 and AFF_68010), so you only need to check one value!.
  31. ; The flags for CPU and FPU can be used both with (AFF_CPU | AFF_FPU).
  32. ;
  33. ;_xInitCode
  34. ;    MOVE.L    4.W,A0
  35. ;    MOVEQ    #0,D0
  36. ;       MOVE.W  AttnFlags(A0),D0
  37. ;    ANDI.W    #<flag>,D0
  38. ;    BEQ.B    .kill
  39. ;    MOVEQ    #0,D0            ; all ok, library can be opened
  40. ;    RTS
  41. ;.kill    MOVEQ    #1,D0            ; check failed, cannot open
  42. ;    RTS
  43.  
  44. ; Sometimes you do not need functions _XpksPackReset, _XpksPackFree or
  45. ; _XpksUnpackFree. In this case you can set these dummies here:
  46. ;
  47. _XpksPackFree
  48. _XpksPackReset
  49. _XpksUnpackFree
  50.  
  51. ; Dummy functions, mark out them if you want to use your own ones or above
  52. ; processor check.
  53. _xInitCode
  54. _xExitCode
  55.         MOVEQ    #0,D0
  56.         RTS
  57. ; or set these two if the functions are extern
  58. ;    XREF    _xInitCode
  59. ;    XREF    _xExitCode
  60.  
  61. **************************************************************************
  62.  
  63. ; ASM: in assembler language use this file as an include with directive
  64. ;    INCLUDE    xpkLib____.i
  65.  
  66. ; OTHER: In any other language compile this file with an assembler and get
  67. ; an object file (called like xpkLib____.o). Link this object file together
  68. ; with your other code. This file MUST be the first one (e.g. it is the
  69. ; startup code). Set the following external references.
  70. ;
  71. ;    XREF    _XpksPackerInfo
  72. ;    XREF    _XpksPackChunk
  73. ;    XREF    _XpksPackFree
  74. ;    XREF    _XpksPackReset
  75. ;    XREF    _XpksUnpackChunk
  76. ;    XREF    _XpksUnpackFree
  77.  
  78. **************************************************************************
  79.